
#ifndef SIGPIPE_HANDLER_H_
#define SIGPIPE_HANDLER_H_

#include <signal.h>
#include <assert.h>

#include "EventHandler.h"
#include "SignalHandler.h"

class SIGPIPE_Handler : public EventHandler {

	public:

		SIGPIPE_Handler () {}

		~SIGPIPE_Handler () {
		}

		virtual int handleSignal ( int signum ) {
			switch ( signum ){
				case SIGPIPE:
				{
					SignalHandler :: getInstance()->registerHandler ( SIGPIPE,this );
					break;
				}
				default:
					break;
			}
			return 0;
		}
};

#endif /* SIGPIPE_HANDLER_H_ */
